package com.ruoyi.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.springframework.data.annotation.Transient;

/**
 * 合约对象 tb_pact
 * 
 * @author ruoyi
 * @date 2024-05-15
 */
public class TbPact extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 合同状态 */
    @Excel(name = "合同状态")
    private Integer statusId;

    /** 物业地址 */
    @Excel(name = "物业地址")
    private String propertyAddress;

    /** 房源编号 */
    @Excel(name = "房源编号")
    private String houseNum;

    /** 业主姓名 */
    @Excel(name = "业主姓名")
    private Long customer1Id;

    /** 客户姓名 */
    @Excel(name = "客户姓名")
    private Long customer2Id;

    /** 签约日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "签约日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date beginDate;

    /** 结束日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endDate;

    /** 合同金额 */
    @Excel(name = "合同金额")
    private Long contractFee;

    /** 合同编号 */
    @Excel(name = "合同编号")
    private String contractNum;

    /** 详细内容 */
    @Excel(name = "详细内容")
    private String content;

    /** 合同附件 */
    @Excel(name = "合同附件")
    private String contractAnnex;

    /** 合同照片 */
    @Excel(name = "合同照片")
    private String picture;

    @Transient
    private String contractStatus;

    @Transient
    private String realName;

    @Transient
    private String nickName;




    /** 押金 */
    @Excel(name = "押金")
    private Long yj;


    public String getContractStatus() {
        return contractStatus;
    }

    public void setContractStatus(String contractStatus) {
        this.contractStatus = contractStatus;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setStatusId(Integer statusId) 
    {
        this.statusId = statusId;
    }

    public Integer getStatusId() 
    {
        return statusId;
    }
    public void setPropertyAddress(String propertyAddress) 
    {
        this.propertyAddress = propertyAddress;
    }

    public String getPropertyAddress() 
    {
        return propertyAddress;
    }
    public void setHouseNum(String houseNum) 
    {
        this.houseNum = houseNum;
    }

    public String getHouseNum() 
    {
        return houseNum;
    }
    public void setCustomer1Id(Long customer1Id) 
    {
        this.customer1Id = customer1Id;
    }

    public Long getCustomer1Id() 
    {
        return customer1Id;
    }
    public void setCustomer2Id(Long customer2Id) 
    {
        this.customer2Id = customer2Id;
    }

    public Long getCustomer2Id() 
    {
        return customer2Id;
    }
    public void setBeginDate(Date beginDate) 
    {
        this.beginDate = beginDate;
    }

    public Date getBeginDate() 
    {
        return beginDate;
    }
    public void setEndDate(Date endDate) 
    {
        this.endDate = endDate;
    }

    public Date getEndDate() 
    {
        return endDate;
    }
    public void setContractFee(Long contractFee) 
    {
        this.contractFee = contractFee;
    }

    public Long getContractFee() 
    {
        return contractFee;
    }
    public void setContractNum(String contractNum) 
    {
        this.contractNum = contractNum;
    }

    public String getContractNum() 
    {
        return contractNum;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setContractAnnex(String contractAnnex) 
    {
        this.contractAnnex = contractAnnex;
    }

    public String getContractAnnex() 
    {
        return contractAnnex;
    }
    public void setPicture(String picture) 
    {
        this.picture = picture;
    }

    public String getPicture() 
    {
        return picture;
    }
    public void setYj(Long yj) 
    {
        this.yj = yj;
    }

    public Long getYj() 
    {
        return yj;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("statusId", getStatusId())
            .append("propertyAddress", getPropertyAddress())
            .append("houseNum", getHouseNum())
            .append("customer1Id", getCustomer1Id())
            .append("customer2Id", getCustomer2Id())
            .append("beginDate", getBeginDate())
            .append("endDate", getEndDate())
            .append("contractFee", getContractFee())
            .append("contractNum", getContractNum())
            .append("content", getContent())
            .append("contractAnnex", getContractAnnex())
            .append("picture", getPicture())
            .append("yj", getYj())
                .append("contractStatus", getContractStatus())
                .append("realName", getRealName())
                .append("nickName", getNickName())
            .toString();
    }
}
